TELCALookup
Provides a handle to a call appearance structure associated with a directory number.
pascal TELErr TELCALookup ( TELDNHandle hTELDN, short internalExternal, short index, TELCAHandle *hTELCA);
hTELDN
- A handle to a directory-number structure. You provide the handle.
internalExternal
- A constant that specifies where a call appearance originates relative to the local switch or closed user group. The function counts only call appearances that meet the specification you provide here to arrive at the call appearance indicated by the
index
parameter. You can use one of the constants described in "Call Origination Types" (page 4-13).index
- The index of the call appearance whose call appearance structure handle you want to get. Valid index values start at 1.
hTELCA
- On exit, a handle to the call appearance structure for the call appearance you requested. The function returns the handle.
- function result
- A result code.
DESCRIPTION
TheTELCALookup
function returns, in thehTELCA
parameter, a handle to the call appearance structure for the call appearance having the index specified by theindex
parameter in the list of call appearances associated with the directory number specified by thehTELDN
parameter. As a rule, your application need not call theTELCALookup
function to obtain a handle to a call appearance. When your application places a call, it gets a handle from theTELSetupCall
function (page 4-24). If the user manually initiates a call or if another application callsTELSetupCall
, you get a handle to the new call appearance structure from antelCAOutgoingMsg
message. For an incoming call, you get a handle from atelCAOfferMsg
message or atelCAAlertingMsg
message.However, when your application starts, one or more call appearances may already be in use. The
TELCALookup
function lets you obtain handles for those call appearances. First call theTELCountCAs
function (page 4-57) to get the number of non-idle call appearances on a given directory number. If any exist, use the same directory number and the same value in theinternalExternal
parameter and callTELCALookup
repeatedly to get a handle to the call appearance structure for each call appearance. The range of valid values for theindex
parameter starts at 1 and goes up to the number returned byTELCountCAs
when you specified the same call origination type.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help